package com.ruoyi.tjbb.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.tjbb.mapper.SysTjbbAccbbMapper;
import com.ruoyi.tjbb.domain.SysTjbbAccbb;
import com.ruoyi.tjbb.service.ISysTjbbAccbbService;

/**
 * acc报表Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-09-26
 */
@Service
public class SysTjbbAccbbServiceImpl implements ISysTjbbAccbbService 
{
    @Autowired
    private SysTjbbAccbbMapper sysTjbbAccbbMapper;

    /**
     * 查询acc报表
     * 
     * @param id acc报表主键
     * @return acc报表
     */
    @Override
    public SysTjbbAccbb selectSysTjbbAccbbById(Long id)
    {
        return sysTjbbAccbbMapper.selectSysTjbbAccbbById(id);
    }

    /**
     * 查询acc报表列表
     * 
     * @param sysTjbbAccbb acc报表
     * @return acc报表
     */
    @Override
    public List<SysTjbbAccbb> selectSysTjbbAccbbList(SysTjbbAccbb sysTjbbAccbb)
    {
        return sysTjbbAccbbMapper.selectSysTjbbAccbbList(sysTjbbAccbb);
    }

    /**
     * 新增acc报表
     * 
     * @param sysTjbbAccbb acc报表
     * @return 结果
     */
    @Override
    public int insertSysTjbbAccbb(SysTjbbAccbb sysTjbbAccbb)
    {
        sysTjbbAccbb.setCreateTime(DateUtils.getNowDate());
        return sysTjbbAccbbMapper.insertSysTjbbAccbb(sysTjbbAccbb);
    }

    /**
     * 修改acc报表
     * 
     * @param sysTjbbAccbb acc报表
     * @return 结果
     */
    @Override
    public int updateSysTjbbAccbb(SysTjbbAccbb sysTjbbAccbb)
    {
        return sysTjbbAccbbMapper.updateSysTjbbAccbb(sysTjbbAccbb);
    }

    /**
     * 批量删除acc报表
     * 
     * @param ids 需要删除的acc报表主键
     * @return 结果
     */
    @Override
    public int deleteSysTjbbAccbbByIds(Long[] ids)
    {
        return sysTjbbAccbbMapper.deleteSysTjbbAccbbByIds(ids);
    }

    /**
     * 删除acc报表信息
     * 
     * @param id acc报表主键
     * @return 结果
     */
    @Override
    public int deleteSysTjbbAccbbById(Long id)
    {
        return sysTjbbAccbbMapper.deleteSysTjbbAccbbById(id);
    }
}
